//TODO connect to database
db.players.ensureIndex({"uid": 1}, {unique: true});
db.players.ensureIndex({"token": 1}, {unique: true});
db.players.ensureIndex({"channelUid": 1}, {unique: true});
db.players.ensureIndex({"currencyComponent.diamond": 1});
db.players.ensureIndex({"statComponent.playTimes": 1});
db.mailDatas.ensureIndex({"id": 1}, {unique: true});
db.mailDatas.ensureIndex({"time": -1});
db.gameRecords.ensureIndex({"playerScores.uid": 1, "time": -1});
db.headline.ensureIndex({"id": 1}, {unique: true});
db.orders.ensureIndex({"orderId": 1}, {unique: true});
db.configs.ensureIndex({"key": 1}, {unique: true});
